<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <title>修改</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
    </head>
    <body>
        <input type="hidden" name="id" id="id"></br></br>
        密码<input type="password" name="pwd" id="pwd"/></br></br>
        邮箱<input type="text" name="email" id="email"/></br></br>
        电话<input type="text" name="tel" id="tel"/></br></br>
        <script type="text/javascript">
    {literal}                                                            
        $("input[name=update]").click(function(){
            var id = $("input[name=id]").val();
               var pwd = $("input[name=pwd]").val();
               var email= $("input[name=email]").val();
               var tel = $("input[name=tel]").val(); 
                $.ajax({
             type:"get",
             url:"./index.php?m=index&c=user&a=update",
             data:{id:id,pwd:pwd,email:email,tel:tel},
             success:function(b){
                 if(b==1){
                   alert("修改成功");window.location.href='./index.php?m=index&c=user&a=list1';
              
                 }
             }
                 });
            });
                {/literal}
                </script>
    </body>
    
</html>
